<?php

$http = new swoole_http_server("127.0.0.1", 9501);
$http->on('request', function ($request, $response) {
    $redis = new Redis();
    $redis->connect('192.168.1.201', 6379);
    $redis->get('cd-idc-web-server-1');
    $response->end($redis->get('cd-idc-web-server-1'));
});
$http->start();
?>